Release 10.1A: OpenEdge Data Management:
SQL Reference


EXEC SQL Delimiter

In C language programs, you must precede embedded SQL statements with the EXEC SQL delimiter so that the precompiler can distinguish statements from the host language statements.

Note: Constructs within a BEGIN-END DECLARE SECTION do not require the EXEC SQL delimiter.

Syntax

EXEC SQL sql_statement ; 

sql_statement

An SQL statement to be processed by the ESQL precompiler. You must terminate each SQL statement with a semicolon to mark the end of the statement.

Example

EXEC SQL WHENEVER SQLERROR GOTO selerr ; 
EXEC SQL PREPARE stmtid from :sel_stmt_v ; 
EXEC SQL DECLARE dyncur CURSOR FOR stmtid ; 
EXEC SQL OPEN dyncur ; 
EXEC SQL WHENEVER NOT FOUND GOTO seldone ; 

Note

Authorization

None


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095